<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    // const obj = {
    //     a: [
    //         {url: 'https://a1.com', timeStamp: Date.now()},
    //         {url: 'https://a2.com', timeStamp: Date.now()},
    //         {url: 'https://a3.com', timeStamp: Date.now()},
    //         {url: 'https://a4.com', timeStamp: Date.now()},
    //         {url: 'https://a5.com', timeStamp: Date.now()},
    //         {url: 'https://a6.com', timeStamp: 1710484272000},
    //     ]
    // }
    // obj.a = obj.a.filter(item => Date.now() - item.timeStamp > 6000)
    // console.log(obj.a)

    const list_01 = [
        {id: 1, timeStamp: 1710728369000},
        {id: 2, timeStamp: 1710728369000},
        {id: 3, timeStamp: 1710728369000},
        {id: 4, timeStamp: 1710728369000},
        {id: 5, timeStamp: 1710728369000},
        {id: 6, timeStamp: 1710728369000},
        {id: 7, timeStamp: 1710728369000},
        {id: 8, timeStamp: 1710746369000}
    ]
    const list_02 = [
        {id: 9},
        {id: 10},
        {id: 11},
        {id: 12},
        {id: 13},
        {id: 14},
        {id: 15},
        {id: 3}
    ]
    const list_03 = [
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10
    ]
    console.log(list_03.map(item => { return {url: item} }))
    // function differenceBy(arr1, arr2, key) {
    //     const arr2Keys = new Set(arr2.map(item => item[key]));
    //     return arr1.filter(item => !arr2Keys.has(item[key]));
    // }
    //
    // console.log(differenceBy(list_02, list_01, 'id'))
    // const list = list_02.filter(item => list_01.some(items => item.id !== items.id))
    // console.log(list)
    // console.log(list_01.filter(item => (Date.now() - item.timeStamp) > 1000 * 60 * 30))
</script>
